[Selenium] Don't stop on HTTP error 403

Posted by Sebi on Stack Overflow See other posts from Stack Overflow or by Sebi
Published on 2010-04-28T14:33:14Z Indexed on 2010/05/05 19:28 UTC
Read the original article Hit count: 500

In one of my Selenium test cases, I try to ensure that certain pages can't be accessed. Instead, HTTP return code 403 should be given.

However, here Selenium terminates test execution with the following exception:

com.thoughtworks.selenium.SeleniumException: XHR ERROR: URL = http://user:[email protected]/admin Response_Code = 403 Error_Message = Forbidden

Any way to work around that?

© Stack Overflow or respective owner

Related posts about selenium

Related posts about selenium-rc